Skip to content

feat(build): support Julia (.jl) nodes in posix and windows builds - #669

Open
yadavchiragg wants to merge 1 commit into
ControlCore-Project:devfrom
yadavchiragg:feat/julia-local-builds
Open

yadavchiragg wants to merge 1 commit into
ControlCore-Project:devfrom
yadavchiragg:feat/julia-local-builds

Conversation

@yadavchiragg

Copy link
Copy Markdown

Problem

Julia nodes only work with --type docker. For posix, macOS, Ubuntu and Windows builds,
mkconcore.py stops with "Extension .jl is unsupported", e.g.
python mkconcore.py demo/sampleJ.graphml demo out posix.

Change

  • mkconcore.py: accept .jl; copy concore.jl (local runtime) for non-docker builds;
    generate build/run/debug scripts for posix, macOS, Ubuntu and Windows; add
    JULIAEXE/JULIAWIN (env vars CONCORE_JULIAEXE/WIN and concore.tools). The docker path
    still uses concoredocker.jl.
  • concore_cli: status/stop recognise Julia nodes (concore.jl, concoredocker.jl);
    validate no longer warns about the .jl extension.
  • README: list the new concore.tools keys.

Testing

  • New tests/test_julia_local_build.py (13 tests) runs mkconcore on demo/sampleJ.graphml for
    every build type and checks the generated scripts. No Julia needed.
  • ruff format/check clean; existing tests unchanged.
  • Manual run on macOS (Apple Silicon, Julia 1.13.3): before this change,
    concore build demo/sampleJ.graphml --type posix failed with
    "Extension .jl is unsupported"; after it, the study builds and the Julia
    node starts and runs (bash build && bash run).

Not included, to keep this small: a concore doctor check for Julia and Julia in the
concore init wizard. Happy to follow up.

mkconcore.py rejected .jl nodes for every build type except docker
("Extension .jl is unsupported"), so Julia studies could not run locally.

- copy concore.jl into node folders and write run/debug scripts for
  posix, macOS (osascript), Ubuntu (xterm) and Windows
- add JULIAEXE/JULIAWIN settings (env vars and concore.tools)
- let concore status/stop recognise Julia nodes
- stop concore validate warning about the .jl extension
- add tests for the generated scripts
@github-actions

Copy link
Copy Markdown

🎉 Welcome aboard, @yadavchiragg! Thank you for your first pull request in concore.

Please ensure that you are contributing to the dev branch.

Your contribution means a lot to us. We'll review it shortly.

Please ensure you have reviewed our:

If you have any questions, feel free to ask. Happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant